package org.panda.tcmoc.intro;

import org.eclipse.jface.action.IMenuManager;
import org.eclipse.jface.action.IStatusLineManager;
import org.eclipse.jface.action.MenuManager;
import org.eclipse.jface.action.StatusLineManager;
import org.eclipse.ui.IWorkbenchActionConstants;
import org.eclipse.ui.IWorkbenchWindow;
import org.eclipse.ui.actions.ActionFactory.IWorkbenchAction;
import org.eclipse.ui.application.ActionBarAdvisor;
import org.eclipse.ui.application.IActionBarConfigurer;
import org.eclipse.ui.statushandlers.StatusManager;
import org.panda.tcmoc.action.OpenSpApprovalEditorAction;
import org.panda.tcmoc.action.OpenSpCreateEditorAction;
import org.panda.tcmoc.action.OpenSpInquiryEditorAction;

public class ApplicationActionBarAdvisor extends ActionBarAdvisor {

	private OpenSpCreateEditorAction openSpEdAction;
	private OpenSpInquiryEditorAction openSpIqAction;
	private OpenSpApprovalEditorAction openSpApAction;

	public ApplicationActionBarAdvisor(IActionBarConfigurer configurer) {
		super(configurer);
	}

	protected void makeActions(IWorkbenchWindow window) {
		openSpEdAction = new OpenSpCreateEditorAction(window);
		openSpApAction=new OpenSpApprovalEditorAction(window);
		openSpIqAction = new OpenSpInquiryEditorAction(window);
	}

	protected void fillMenuBar(IMenuManager menuBar) {

		MenuManager spMenu = new MenuManager("&StructuredProduct",
				"");
		/* Structured Product */
		menuBar.add(spMenu);
		spMenu.add(openSpEdAction);
		spMenu.add(openSpApAction);
		spMenu.add(openSpIqAction);
	}



}
